<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
 <script>

 for(var a =1;a<=10000;a++){
	 var  num=0;
	for(var c=1;c<a;c++){
	
	
		if(a%c==0){
		num=num+c;
		}
			

	}
	if(num==a){
	
	
	document.write(num+"<br>");
	}

 }
 

 
 
 </script>
</html>
